home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / fly.doc < prev    next >
Text File  |  1995-03-31  |  7KB  |  145 lines

  1. (Comp.sys.handhelds) 
  2. Item: 3382 by anderson at truebalt.caltech.edu 
  3. Author: [Eric R. Anderson] 
  4.   Subj: HP48: Aviation/Flight Planning programs 
  5.   Date: Thu Jun 06 1991 
  6.  
  7. [Note: Eric describes how to "unpack" the program.  He is referring to the 
  8.  source code listing, called FLY.SRC on this disk.  But you don't need to 
  9.  bother "unpacking" it, because I already did.  The binary file, called 
  10.  FLY on this disk, is fully "unpacked" and ready to download and run.  -jkh-] 
  11.  
  12.    What follows is a group of programs making up an electronic flight 
  13. computer of sorts.  The flight computer is made up of 6 functions: 
  14.  
  15.       Weight and Balance with 9 plane memory and CG graphing 
  16.       Flight plan of up to eight legs 
  17.       Winds aloft calculation 
  18.       Density altitude 
  19.       Distance and heading between two points 
  20.       Crosswind components 
  21.  
  22. Each will be described more fully later.  These functions can be accessed 
  23. either alone, or by selecting from a menu presented by running START. 
  24. There is a minimal amount of error checking in the programs, but if run 
  25. from the START menu, the stack will be cleaned up if an error does occur. 
  26. If flag 10 is set, the output of some of the program is changed to metric. 
  27. Units are allowed (even encouraged) unless noted below, and appropriate  
  28. conversions made.  Extensive use is made of PGROB and UPGROB from Erik Bryntse, 
  29. and they are included in the directory.  The last four functions could be done 
  30. much more compactly with the equation solver, but the programs provide a front 
  31. end for things.  The CST menu is also defined for conversions between fuel 
  32. volume and weight (at 6lbs/gal). 
  33.    The whole thing is rather large, and to download on my 30K calculator 
  34. requires removing everthing but ASC-> and ->ASC.  ASC-> is required to unpack 
  35. the directory.  When I download it, everything goes fine until the last packet 
  36. or two, when the calculator quits responding.  Both Kermits eventually time out, 
  37. and the directory is present and whole on the calculator.  I'm not sure if this 
  38. is just my calculator, or what.  If it happens, just be patient.  Once 
  39. downloaded, press AERO to get into the directory, then SETUP to unpack it. 
  40. Press START to begin. 
  41.  
  42.                              Notes: 
  43.  
  44. FPLAN, WIND, and CWIND use vector arithmetic, so beware if you have an HP 48 
  45. with the vector bug.  The checksums are: 
  46.  
  47.  Before unpacking: #11040d 
  48.                    23664.5 
  49.  
  50.  After unpacking:  # 5241d 
  51.                    17881.5 
  52.  
  53. Disclaimer:  Use at your own risk.  Feel free to redistribute in whole 
  54. or in part if it strikes your fancy.  If you want to make improvements, go 
  55. ahead - I'm graduating in a week and a half, and losing net access, so I can't 
  56. post any I make. 
  57.  
  58.                              Program Descriptions: 
  59.  
  60.   The primary programs are described in the order they appear in the VAR menu. 
  61. Since the directory is rather large, I have included a list of programs 
  62. that call each program, so if you decide you don't want one of the functions, 
  63. you can delete all the programs that only it calls.  To save memory, I run 
  64. without START and HELP, which saves about 5K.  I apologise if the descriptions 
  65. are a little cryptic.  The program follows the descriptions. 
  66.  
  67. START:  Called by: None 
  68.         Use the arrow keys to move around, and ENTER to select choice. 
  69.         Press any key to return to menu after program execution. 
  70. HELP:   Called by: START, self executable 
  71.         Presents three short help screens. 
  72. FPLAN:  Called by: START, self executable 
  73.         Computes magnetic heading, groundspeed, time en route, and fuel 
  74.         burn for up to eight legs of a flight.  If units are entered for 
  75.         distance or fuel consumption rate on the first leg, units must be 
  76.         entered for each remaining leg.  Time is shown in Hours:minutes 
  77.         format. 
  78. W&B:    Called by: START, self executable 
  79.         Compute weight and balance for selected aircraft, and plots weight 
  80.         vs moment arm if graph is defined for aircraft.  Output is metric 
  81.         if flag 10 is set.  If a graph has been defined for the plane chosen, 
  82.         flag 10 must be set so the output matches the units used in defining 
  83.         the graph for the graph to be valid.  Choose ADD/DELETE to add a new 
  84.         plane or delete an old one.  When adding a plane, select 0 for the 
  85.         number of points in the graph to save memory.  If you want to define 
  86.         a graph, select a number of points equal to the number of line 
  87.         segments in the graph + 1.  A line will be drawn from each point to the 
  88.         next point entered.  Points are entered in the form (without units) 
  89.         { moment/1000 weight }.  When asked for a station name, keep in 
  90.         mind that W&B will append "weight and moment arm" after the name 
  91.         you supply. 
  92. WIND:   Called by: START, self executable 
  93.         Calculates winds aloft from true course, ground speed, true heading 
  94.         and true airspeed. 
  95. DALT:   Called by: START, self executable 
  96.         Calculates density altitude from pressure altitude and temperature. 
  97.         Valid only for altitudes less than 36000 ft. 
  98. DISTANCE: Called by: START, self executable 
  99.         Calculates distance and true heading between two points of 
  100.         latitude and longitude entered in hhh.mmss form.  Points in 
  101.         the southern or eastern hemisphere may need to be entered as 
  102.         negative.  The program has only been tested for points N and W. 
  103. CWIND:  Called by: START, self executable 
  104.         Given a heading and wind speed and direction, calculates headwind 
  105.         and crosswind components.  Does not support units - units of 
  106.         components are same as of wind speed. 
  107. PAUSE:  Called by: START 
  108. TRAP:   Called by: START 
  109. MAKEMENU: Called by: none 
  110.         Utility to make a menu for use with CHOOSE. 
  111. ADDPLANE: Called by: W&B 
  112. STRIP:  Called by: START, FPLAN 
  113. PAD:    Called by: START 
  114. CHOOSE: Called by: START, W&B, ADDPLANE 
  115.         Call with initial cursor position in stack level 2, and the menu grob 
  116.         in level 1.  Returns cursor postion when ENTER is pressed. 
  117. ADDGRAPH: Called by: ADDPLANE 
  118. SCL:    Called by: ADDGRAPH, CGGRAPH 
  119. WBIN:   Called by: W&B 
  120. CGGRAPH: Called by: W&B 
  121. PGROB, UPGROB: Called by: HELP,CHOOSE, ADDPLANE, CGGRAPH, ADDGRAPH, FPLAN 
  122. PLANES: Called by W&B, ADDPLANE 
  123.         Stores the list of planes for use by W&B. Each plane list has the 
  124. format 
  125.         { { CGgraph maxmoment minmoment maxweight minweight } 
  126.           { { station1name station1weight station1arm } 
  127.             { station2name station2weight station2arm } 
  128.                                 . 
  129.                                 . 
  130.                                 . 
  131.             { stationNname stationNweight stationNarm } } 
  132.           "Plane name" 
  133.         } 
  134. FPLAN.GROB: Called by: FPLAN 
  135. HELP.{123}: Called by: HELP 
  136. STMENU: Called by: START 
  137. WBMENU: Called by: W&B, ADDPLANE 
  138. CURSOR: Called by: CHOOSE 
  139. UNITMENU: Called by: W&B, ADDPLANE 
  140. PLMENU: Called by: ADDPLANE 
  141. DESCMENU: Called by: ADDPLANE 
  142. Gal: Called by: W&B, FPLAN, ADDPLANE, CST    (Defines 1 Gallon = 6 lbs) 
  143. L: Called by: W&B, FPLAN, ADDPLANE, CST 
  144. CST: Called by: None 
  145.